package com.graduation.vaccine.service;


import com.graduation.vaccine.vo.*;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;


public interface UserService {

    UserVo getUserByCookie(String ticket, HttpServletRequest request, HttpServletResponse response);

    /**
     * 测试方法
     * @return
     */
    RespBean test();

    /**
     * 登录
     * @param loginVo
     * @param request
     * @param response
     * @return
     */
    RespBean doLogin(LoginVo loginVo, HttpServletRequest request, HttpServletResponse response);

    /**
     * 注册
     * @param registerVo
     * @return
     */
    RespBean register(RegisterVo registerVo);

    /**
     * 发送验证码
     * @param email
     * @return
     */
    RespBean sendEmail(String email);

    RespBean getListByCompanyName(String companyName);

    RespBean sysUnionQuery(UnionQueryUserVo unionQueryUserVo);

    //web——注册用户
    RespBean registerUser(RegisterUserVo registerUserVo);

    RespBean updateUserInfo(UpdatePersonalInfo updatePersonalInfo);

    RespBean updateUserInfo(UpdatePersonalInfo updatePersonalInfo,String companyName);

    //注销用户
    RespBean cancelUser(Long phone, Boolean status, String companyName);

    RespBean orgUnionQuery(UnionQueryUserVo unionQueryUserVo);
}
